BASIC_TYPE%
TYPE

Syntax: BASIC_TYPE% (offset)
   and: TYPE (name$)
Location: Turbo Toolkit (BASIC_TYPE%)
          TinyToolkit, BTool (TYPE)

The function TYPE returns the internal identification number of any variable, device name, keyword, command, function etc. as a decimal number. Each type corresponds to a certain number:      

TYPE Type
1    undefined string
2    undefined floating point
3    undefined integer
513  string variable
514  floating point number
515  integer number
769  string array
770  floating point array
771  integer array
1024 BASIC PROCedure
1281 BASIC string FuNction
1282 BASIC floating point
1283 BASIC integer FuNction
1538 REPeat loop name
1794 FOR loop name
2048 machine code procedure
2304 machine code function

The function BASIC_TYPE% is similar, except that it works by reference to a specified entry in the SuperBASIC name table (see BASIC_NAME$).  It returns one of the following values:

0   No Type
1   String
2   Floating Point
4   Integer

Turbo users can use TurboFix to access Minvera MultiBASIC / SBASIC variables.

CROSS-REFERENCE:
KEY_ADD and ELIS return the address where a machine code keyword is stored. 
DEFINED checks if a variable is set.
